package com.eugenes.collections;

import java.util.Iterator;

public interface MyMap<K, V> {
    void clear();
    V put(K key, V value);
    V remove(Object key);

    boolean containsKey(Object key);
    boolean containsValue(Object value);
    V get(Object key);
    boolean isEmpty();
    Iterator<Entry<K, V>> entryIterator();
    int size();

    interface Entry<K, V> {
        @Override boolean equals(Object obj);
        K getKey();
        V getValue();
        @Override int hashCode();

        V setValue(V value);
    }
}
